
package gui;

import java.awt.Color;
import java.awt.Rectangle;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import client.Client;
import gui.MainSystemManger;
import javax.swing.JTextArea;
import gui.*;
public class BlockPremission extends JFrame {

	private JPanel Sub = null;
	private MainCustomer MC;
	private JButton jButtonBack = null;
	private JButton jButtonNext = null;
	private JTextField jTextFieldReason = null;
	private JTextArea jTextAreaReason = null;
	
	public BlockPremission() {
		super();
		initialize();
	}

	/**
	 * This method initializes AcademicFrame 
	 */
	private void initialize() {
		this.setSize(1000, 720);
		this.setContentPane(getSub());
		this.setTitle("Block Premmision");		
	}

	private JPanel getSub() {
		if (Sub == null) {
			Sub = new JPanel();
			Sub.setLayout(null);
			Sub.setBackground(Color.CYAN);
			Sub.add(getJButtonBack(), null);
			Sub.add(getJButtonNext(), null);
			Sub.add(getJTextFieldReason(), null);
			Sub.add(getJTextAreaReason(), null);
			

		}
		return Sub; 
	}

	/**
	 * This method initializes jButtonBack	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonBack() {
		if (jButtonBack == null) {
			jButtonBack = new JButton();
			jButtonBack.setBounds(new Rectangle(131, 560, 143, 68));
			jButtonBack.setText("BACK");
			jButtonBack.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					BlockCommit Comm = new BlockCommit();
					Comm.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
					Comm.setSize( 1000,720 ); // set frame size
					Comm.setResizable(true);
					Comm.setVisible( true ); // display frame
					BlockPremission.this.dispose();
				    
				}
			});
		}
		return jButtonBack;
	}

	/**
	 * This method initializes jButtonNext	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonNext() {
		if (jButtonNext == null) {
			jButtonNext = new JButton();
			jButtonNext.setBounds(new Rectangle(672, 560, 143, 68));
			jButtonNext.setText("COMMIT");
			jButtonNext.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					AreUSure SFrame = new AreUSure();
					SFrame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
					SFrame.setSize( 300,200 ); // set frame size
					SFrame.setResizable(true);
					SFrame.setVisible( true ); // display frame
				}
			});
		}
		return jButtonNext;
	}

	/**
	 * This method initializes jTextFieldReason	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextFieldReason() {
		if (jTextFieldReason == null) {
			jTextFieldReason = new JTextField();
			jTextFieldReason.setBounds(new Rectangle(134, 203, 243, 28));
			jTextFieldReason.setText("Type here the reason for bolcking user : ");
		}
		return jTextFieldReason;
	}

	/**
	 * This method initializes jTextAreaReason	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getJTextAreaReason() {
		if (jTextAreaReason == null) {
			jTextAreaReason = new JTextArea();
			jTextAreaReason.setBounds(new Rectangle(487, 194, 260, 129));
		}
		return jTextAreaReason;
	}
	
}  //  @jve:decl-index=0:visual-constraint="12,11"
